tests: Fix locale detection
authorJan Tojnar <jtojnar@gmail.com>
Sat, 2 Jun 2018 22:25:31 +0000 (00:25 +0200)
committerAtomic Bot <atomic-devel@projectatomic.io>
Sun, 3 Jun 2018 21:25:07 +0000 (21:25 +0000)
commitf200efdb8ae7189e8e50e2e934bfaad3f14eaa9b
tree7ccee2eb4607f5e2a3cf2f39bef8852ae9275ab3
parentbf3525adcbdcafa67597c216ed4465d4bceadd54
tests: Fix locale detection

When a locale with C.utf8 in its name (e.g. es_EC.utf8) was installed
on a system, the C.utf8 locale was chosen, even when it was not available.

This patch fixes the grep pattern to match whole lines returned by locale -a.

See: #1592

Closes: #1611
Approved by: cgwalters
tests/libtest-core.sh